import { api, dataHandler } from 'utils/http';

const url = '/api/image';

const listImage = () => api.get(url).then(dataHandler);

const createImage = (data) => api.post(url, data).then(dataHandler);

const deleteImage = (data) => api.delete(url, data).then(dataHandler);

export {
  listImage,
  createImage,
  deleteImage,
};
